package com.appkubes.fintech.restful.application.rent.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @description: 账单状态
 * @author: xqc
 * @date: 2020/1/2 15:44
 * @params:
 * @return:
 */
public enum RentBillEnums {
	//还款状态: 00 未开始，01还款中 02已逾期 03正常还款完毕 04已提还 05 逾期终止
	未开始("00", "未开始"),
	还款中("01", "还款中"),
	已逾期("02", "已逾期"),
	还款完毕("03","还款完毕"),
	已提还("04","已提还"),
	逾期完成("05","逾期完成");


	private static Map<String, RentBillEnums> codeMap;
	private String value;
	private String name;

	static { codeMap = new HashMap();
		for (RentBillEnums code : values()){
			codeMap.put(code.getValue(), code);
		}
	}

	public static RentBillEnums codeOf(String code)
	{
		return (RentBillEnums)codeMap.get(code);
	}

	private RentBillEnums(String value, String name)
	{
		this.value = value;
		this.name = name;
	}

	public String getValue() {
		return this.value;
	}

	public String getName() {
		return this.name;
	}
}
